package draw

import (
	"github.com/gin-gonic/gin"
	apis "vrcm/src/vrcm/app/admin/apis/draw"
	"vrcm/src/vrcm/app/admin/router"
)

func init() {
	router.NoCheckRole = append(router.NoCheckRole, registerSmsRouter)
}

// registerSmsRouter
func registerSmsRouter(v1 *gin.RouterGroup) {
	api := apis.Draw{}
	r := v1.Group("/draw")
	{
		r.POST("/get-list", api.GetPage)
		r.POST("/save-draw", api.SaveDraw)
		r.POST("/get-draw", api.GetDraw)
		r.POST("/get-drawing", api.GetDrawing)
		r.POST("/delete-draw", api.DeleteDraw)
		r.POST("/start-draw", api.StartDraw)
		r.POST("/end-draw", api.EndDraw)
		r.POST("/copy-draw", api.CopyDraw)
		r.POST("/save-claim-prize", api.SaveClaimPrize)
		r.POST("/save-prize-config", api.SavePrizeConfig)
		r.POST("/delete-prize-config", api.DeletePrizeConfig)
		r.POST("/copy-prize-config", api.CopyPrizeConfig)
		r.POST("/click-draw", api.ClickDraw)
		r.POST("/save-award-info", api.SaveAwardInfo)
		r.POST("/get-award-info", api.GetAwardInfo)
		r.POST("/get-user-award-info", api.GetUserAwardInfo)
		r.POST("/add-draw-whites", api.AddDrawWhites)
		r.POST("/save-draw-whites", api.SaveDrawWhite)
		r.POST("/get-draw-white", api.GetDrawWhite)
		r.POST("/delete-draw-whites", api.DeleteDrawWhite)
		r.POST("/save-prize-page", api.SavePrizePage)
	}
}
